fs-backend: fix default export and filename checks
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 27 Jun 2009 09:47:38 +0000 (10:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 27 Jun 2009 09:47:38 +0000 (10:47 +0100)
commitb3dac9ec91867d6c40a2de4db0bf4525aac0606d
treea32a8b5e826f7173c2c524c5d203f6bd0dc7d3b6
parentda5e66e536ce9a491d620d90584577c5b08c9a06
fs-backend: fix default export and filename checks

This patch changes fs-backend to use /var/lib/xen as default export
and check all the file names and paths given by the frontend against the
export path, so that the frontend can only operate under the export
directory.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/fs-back/fs-backend.c
tools/fs-back/fs-ops.c